package javabase.desginpattern.behavior.observer.pull;

/**
 * @author fance
 * @date 18-4-26 下午4:10
 */
public class Client {
    public static void main(String[] args) {
        ConcreteSubject subject = new ConcreteSubject();
        Observer observer = new ConcreteObserver();
        subject.attach(observer);
        subject.setSubjectState("new State");
        subject.setSubjectState("change...");
    }
}
